home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1996 / MacHack 1996.toast / Presentations / Presentations ’92 / PatchWorks Kit / <PatchWorks++> / Scalper.h < prev    next >
Text File  |  1992-05-15  |  793b  |  35 lines

  1. /*
  2.     Scalper.h
  3.     
  4.     Scalper related definitions.
  5.     
  6.     by Mouse Herrel & Patrick C. Beard.
  7.  */
  8.  
  9. #pragma once
  10.  
  11. #ifndef    __SCALPER__
  12. #define __SCALPER__
  13.  
  14. #include "Patch.h"
  15.  
  16. #define gestaltScalperPatchProc    'L¥NK'
  17. #define cFirstOSTrap            0xa000
  18. #define cLastOSTrap                0xa0ff
  19. #define cNumOSTraps                (cLastOSTrap - cFirstOSTrap + 1)
  20. #define cFirstToolTrap            0xa800
  21. #define cLastToolTrap            0xab2a
  22. #define cNumToolTraps            (cLastToolTrap - cFirstToolTrap + 1)
  23.  
  24. enum {
  25.     eBeginScalperErrors = 1000,    // we should use an error handling scheme.
  26.     eNoScalperErr,                // The companion extension is not running.
  27.     eScalperInUseErr,            // The companion extension is already being used.
  28.     eEndScalperErrors
  29. };
  30.  
  31. typedef pascal PatchVectorPtr (*ScalperHook) (short id);
  32. typedef pascal StringPtr (*UnpatchHook) (void);
  33.  
  34. #endif
  35.